package com.zw.a.basic.a07.demo11_coach;

//定义乒乓球教练类
public class PingPangCoach extends Coach implements SpeakEnglish {
    //构造方法
    public PingPangCoach() {
    }

    public PingPangCoach(String name, int age) {
        super(name, age);
    }

    //重写父类(接口)的所有抽象方法
    @Override
    public void teach() {
        System.out.println("乒乓球教练教如何发球");
    }

    @Override
    public void eat() {
        System.out.println("乒乓球教练吃大白菜, 喝小米粥");
    }

    @Override
    public void speak() {
        System.out.println("乒乓球教练需要学习英语");
    }
}
